package com.bc.ui;

import com.bc.R;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.app.FragmentActivity;

public class SplashActivity extends FragmentActivity{
	@Override
	protected void onCreate(Bundle arg0) {
		super.onCreate(arg0);
		
		setContentView(R.layout.activity_splash);
		
		Intent intent = new Intent(SplashActivity.this, BtcService.class);
		startService(intent);
		
		new Handler().postDelayed(new Runnable() {
			
			@Override
			public void run() {
				Intent intent = new Intent(SplashActivity.this, MainActivity.class);
				startActivity(intent);
				overridePendingTransition(R.anim.push_in_right, R.anim.push_out_left);
				finish();
			}
		}, 2000);
	}
}
